﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.master" AutoEventWireup="true" CodeFile="CatalogoEmpresa.aspx.cs" Inherits="CatalogoEmpresa" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="Infragistics4.WebUI.UltraWebGrid.v10.3, Version=10.3.20103.1013, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">

<form id="catalogo" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">   </asp:ScriptManager>
<table>
    <tr>
        <td>
            <asp:GridView ID="grdDatos" runat="server"  DataKeyNames="IdEmpresa" CellPadding="4" 
                GridLines="None" AutoGenerateColumns="False" 
                onselectedindexchanged="GrdDatos_SelectedIndexChanged" ForeColor="#333333">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <Columns>
                    <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                            ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" />
                    </asp:CommandField>
                    <asp:BoundField HeaderText="Nombre" DataField="Nombre" >
                    <HeaderStyle Font-Size="XX-Small" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="RFC" DataField="Rfc" >
                    <HeaderStyle Font-Size="XX-Small" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Direccion" DataField="Direccion" >
                    <HeaderStyle Font-Size="XX-Small" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Telefono1" DataField="Telefono1" >
                    <HeaderStyle Font-Size="XX-Small" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Telefono2" DataField="Telefono2" >
                    <HeaderStyle Font-Size="XX-Small" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Representante1" DataField="Representante1" >
                    <HeaderStyle Font-Size="XX-Small" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Representante2" DataField="Representante2" >
                    <HeaderStyle Font-Size="XX-Small" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Representante3" DataField="Representante3" >
                    <HeaderStyle Font-Size="XX-Small" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Numero Escritura" DataField="NumeroEscritura" >
                    <HeaderStyle Font-Size="XX-Small" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Notario" DataField="Notario" >
                    <HeaderStyle Font-Size="XX-Small" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Ciudad" DataField="Ciudad" >
                    <HeaderStyle Font-Size="XX-Small" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="R.P.P." DataField="RegistroPublicoPropiedad" >
                    <HeaderStyle Font-Size="XX-Small" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Serie" DataField="Serie" >
                    <HeaderStyle Font-Size="XX-Small" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="FechaAlta" DataField="FechaAlta" DataFormatString="{0:M-dd-yyyy}">
                    <HeaderStyle Font-Size="XX-Small" />
                    </asp:BoundField>                    
                </Columns>
                <EditRowStyle BackColor="#999999" />
                <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
            </asp:GridView>
        </td>
    </tr>
</table>

<table><tr><td>
    <asp:Button ID="agregar" runat="server" Text="Agregar" 
        onclick="agregar_Click" /></td><td>
    <asp:Button ID="Button2" runat="server" Text="Borrar" onclick="Button2_Click" /></td>
    <td>
        <asp:Button ID="Button1" runat="server" Text="Modificar" 
            onclick="Button1_Click" />
    </td>
</tr>
</table>

                <table style="width: 600px; height: 400px">
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td><img src="images/icons/clipboard.jpg" /></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td><td style="text-align: left">
                      &nbsp;</td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td style="text-align: right">Nombre</td>
                    <td align="left" colspan="3">                        
                        <asp:TextBox ID="Nombre" runat="server" 
                             Height="22px" Width="400px"></asp:TextBox>
                       
                        </td>
                  </tr>
                  <tr>
                    <td>&nbsp</td>
                    
                    <td style="text-align: right">Telefono1</td><td>
                      <asp:TextBox ID="telefono1" runat="server"></asp:TextBox>
                      </td>
                      <td style="text-align: right">
                          Telefono2</td>
                      <td>
                          <asp:TextBox ID="telefono2" runat="server"></asp:TextBox>
                      </td>
                  </tr>
                  <tr><td>
                      <br />
                      </td>
                  <td style="text-align: right">Dirección</td>
                   <td>
                       <asp:TextBox ID="direccion" runat="server"></asp:TextBox>
                      </td>
                  <td style="text-align: right">Num. Escritura:</td>
                    <td>
                        <asp:TextBox ID="escritura" runat="server"></asp:TextBox>
                      </td>
                  </tr>
                  <tr><td>&nbsp;</td>
                    <td style="text-align: right">Notario</td>
                    <td>
                        <asp:TextBox ID="notario" runat="server"></asp:TextBox>
                      </td>
                      <td style="text-align: right">
                          Ciudad</td>
                      <td>
                          <asp:TextBox ID="ciudad" runat="server"></asp:TextBox>
                      </td>
                  </tr>
                  <tr><td>&nbsp;</td>
                  <td style="text-align: right">Reg. Pub. Propiedad</td>
                    <td>
                        <asp:TextBox ID="RPP" runat="server"></asp:TextBox>
                      </td>
                  
                  <td style="text-align: right">R.F.C.</td>
                    <td>
                         <asp:TextBox ID="rfc" runat="server" onkeypress="return handleEnter(this, event)"></asp:TextBox>

                      </td>
                  </tr>
                  <tr><td>&nbsp;</td>
                    <td align="right"  >Representante 1<label>&nbsp;</label></td>
                    <td align="left" colspan="3">
                        <asp:TextBox ID="representante1" runat="server"></asp:TextBox>
                      </td>
                  </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td align="right">
                            Representante 2</td>
                        <td align="left" colspan="3">
                            <asp:TextBox ID="Representante2" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td align="right">
                            Representante 3</td>
                        <td align="left" colspan="3">
                            <asp:TextBox ID="Representante3" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td align="right">
                            Serie</td>
                        <td align="left" colspan="3">
                            <asp:TextBox ID="serie" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                  <tr><td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                      <td>
                          <asp:Button ID="Btnok2" runat="server" Text="Guardar" onclick="Btnok2_Click" />
                      </td>
                      <td>
                          <asp:Button ID="Button6" runat="server" Text="Cancelar" 
                              onclick="Button6_Click" />
                      </td>
                      <td>
                          <asp:HiddenField ID="HiddenField1" runat="server" />
                      </td>
                  </tr>
                </table>


</form>
</asp:Content>

